{% extends "base.html" %}
{% load i18n %}

{% block content %}

{% if form.errors %}
<p class="error">Please correct the errors below:</p>
{% endif %}

<form method="post" action="{% if next %}?next={{ next }}{% endif %}">

  <div class="section-item">
     <label for="id_userName">{% trans "User name" %}</label>
     {{ form.username }}
   {% if form.username.errors %} <span class="error">{{ form.username.errors|join:", " }}</span>{% endif %}
   </div>

   <div class="section-item">
     <label for="id_password">{% trans "Password" %}</label>
     {{ form.password }}
     {% if form.password.errors %} <span class="error">{{ form.password.errors|join:", " }}</span>{% endif %}
   </div>

  <div class="section-item">
     <label for="submit"></label>
      <input type="submit"  value="Log in" />
    </div>
    
</form>

<p>If you don't have an account, you can <a href="/accounts/register/">sign up</a> for one.</p>

{% endblock %}

